<%@ page language="java" import="java.util.*" import="java.sql.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="StudentScore.StudentDao" %>
    <%@page import="StudentScore.StudentDaoJDBC" %>
    <%@page import="StudentScore.Student" %>
    <%@page import="java.util.List" %>
    <%@page import="java.lang.Double" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改界面</title>
</head>
<body>
<%
String st =request.getParameter("stuno"); 
%>
		<form name="postForm" action="UpdateSuccess.jsp" method="post">
 	<% 	    	
    	int stuno = Integer.parseInt(st);
    	StudentDao sdao=new StudentDaoJDBC();
    	Student stu = sdao.findBystuno(stuno);
    	if (stu != null){
    		out.println("学号:"+stuno+"的学生信息如下"+"<br>");	
    %>
    	<table width="200" border="5" >
	  	<tr>	    	
	    	<td align=center>姓名</td>
	    	<td align=center>学号</td>
	    	<td align=center>性别</td>
	    	<td align=center>生日</td>
	  	</tr>
    
    	<tr>
    		<td align=center><%=stu.getName() %></td>
    		<td align=center><%=stu.getStuno() %></td>
    		<td align=center><%=stu.getSex() %></td>
    		<td align=center><%=stu.getBirthday()%></td>
    		
    	</tr>
    	
    <%
    	}else{
    		out.println("没找到"+"学号:"+stuno+"的学生");	
    	}
     %>
     </table>
     	学号： <td><input type="text" id="a" name="stuno" value=<%=st%> readnoly="true"></td>
		<p>修改信息：<br>
			姓名：<input type="text" name="stuname" id="stuname">
		</p>
		<p>
			性别：<input type="text" name="stusex">（female/male）
		</p>
		<p>
			生日：<input type="text" name="stubirthday">（格式：yyyy-mm-dd）
		</p>
		<input type="submit" value="update" />
		</form>
</body>
</html>